<?php

namespace app\admin\model;

use think\Model;

class Banner extends Model
{
    //
    public function position()
    {
        return $this->belongsTo('BannerPosition','pid','id')->bind(['banner_position'=>'name']);
    }
}
